package com.hangan.langchainspringstart.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author hang an
 * @since 2025/8/1
 */
@TableName("volunteer")
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class Volunteer implements Serializable {
    @Serial
    private static final long serialVersionUID = -5597749673146472988L;
    /**
     * 主键ID
     */
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    /**
     * 姓名
     */
    @TableField("name")
    private String name;

    /**
     * 性别
     */
    @TableField("gender")
    private String gender;

    /**
     * 联系电话
     */
    @TableField("phone")
    private String phone;

    /**
     * 沟通时间
     */
    @TableField("communication_time")
    private LocalDateTime communicationTime;

    /**
     * 所在省份
     */
    @TableField("province")
    private String province;

    /**
     * 预估分数
     */
    @TableField("estimated_score")
    private Integer estimatedScore;
}
